package com.aabte.nettyleran.io.aio;

/**
 * @author Daniel
 * @version 1.0
 * @date 2020/3/11
 */
public class TimeServer {

    public static void main(String[] args) {
        int port = 8080;
        if (args != null && args.length > 0) {
            try {
                Integer.valueOf(args[0]);
            } catch (NumberFormatException e) {
                e.printStackTrace();
            }
        }

        AsyncTimeServerHandler timeServer = new AsyncTimeServerHandler("127.0.0.1", port);
        new Thread(timeServer, "AIO-asyncTimeServerHandler-001").start();
    }

}
